/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.buzz.teacher.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.modules.basedata.jiaoshiguanli.entity.Jiaoshiguanli;
import com.jeeplus.modules.basedata.jiaoshizhiwu.entity.Jiaoshizhiwu;
import com.jeeplus.modules.sys.entity.Office;

import java.util.Date;

/**
 * 老师姓名Entity
 * @author 陈
 * @version 2025-07-05
 */
public class Teacher extends DataEntity<Teacher> {

	private static final long serialVersionUID = 1L;
	private String 			name;			// 老师姓名
	private String 			sex;			// 性别
	private String 			tel;			// 电话
	private Date   			begindate;		// 合同开始日期
	private Date   			enddate;		// 合同结束日期
	private Jiaoshiguanli 	room;			// 关联教室
	private Jiaoshizhiwu 	position;		// 职务
	private String 			card;			// 身份证号
	private String 			classid;		// 单据
	private Office 			company;		// 公司

	public Teacher() {
		super();
	}

	public Teacher(String id){
		super(id);
	}

	@ExcelField(title="老师姓名", align=2, sort=7)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@ExcelField(title="性别", align=2, sort=8)
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@ExcelField(title="电话", align=2, sort=9)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="合同开始日期", align=2, sort=10)
	public Date getBegindate() {
		return begindate;
	}

	public void setBegindate(Date begindate) {
		this.begindate = begindate;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="合同结束日期", align=2, sort=11)
	public Date getEnddate() {
		return enddate;
	}

	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	@ExcelField(title="关联教室", align=2, sort=12)
	public Jiaoshiguanli getRoom() {
		return room;
	}

	public void setRoom(Jiaoshiguanli room) {
		this.room = room;
	}

	@ExcelField(title="职务", align=2, sort=13)
	public Jiaoshizhiwu getPosition() {
		return position;
	}

	public void setPosition(Jiaoshizhiwu position) {
		this.position = position;
	}

	@ExcelField(title="身份证号", align=2, sort=14)
	public String getCard() {
		return card;
	}

	public void setCard(String card) {
		this.card = card;
	}

	@ExcelField(title="单据", align=2, sort=15)
	public String getClassid() {
		return classid;
	}

	public void setClassid(String classid) {
		this.classid = classid;
	}

	@ExcelField(title="公司", align=2, sort=16)
	public Office getCompany() {
		return company;
	}

	public void setCompany(Office company) {
		this.company = company;
	}

}
